package sy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import sy.dao.RoleMapper;
import sy.model.Role;
import sy.service.RoleServiceI;

@Service("roleService")
@Transactional
public class RoleServiceImpl implements RoleServiceI {
	@Autowired
	private RoleMapper roleMapper;

	public Role getRoleById(Integer id) {
		return roleMapper.selectByPrimaryKey(id);
	}

	public List<Role> selectAll() {
		return roleMapper.selectAll();
	}

}
